package kgc.crm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
    * 联系人表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "kgc_crm_crm_contacts")
public class Contacts {
    @TableId(value = "contacts_id", type = IdType.AUTO)
    private Integer contactsId;

    /**
     * 联系人名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_time")
    private Date nextTime;

    /**
     * 手机
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 电话
     */
    @TableField(value = "telephone")
    private String telephone;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 职务
     */
    @TableField(value = "post")
    private String post;

    /**
     * 客户ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 负责人ID
     */
    @TableField(value = "owner_user_id")
    private Long ownerUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 批次
     */
    @TableField(value = "batch_id")
    private String batchId;

    public static final String COL_CONTACTS_ID = "contacts_id";

    public static final String COL_NAME = "name";

    public static final String COL_NEXT_TIME = "next_time";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_TELEPHONE = "telephone";

    public static final String COL_EMAIL = "email";

    public static final String COL_POST = "post";

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_ADDRESS = "address";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_OWNER_USER_ID = "owner_user_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_BATCH_ID = "batch_id";
}